<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/8/6
 * Time: 6:34
 */
?>
    <table class="table">
    <tr>
        <td>文章号</td>
        <td>类型</td>
        <td>标题</td>
        <td>时间</td>
        <td>内容</td>
        <td>阅读次数</td>
        <td>操作</td>
        <td>  </td>
    <tr>

        <?php for($i=0;$i<count($model);$i++)
        {?>
    <tr>
        <td>  <?= $model[$i]['id']?></td>
        <td>  <?= $model[$i]['type']?></td>
        <td>  <?= $model[$i]['title']?></td>
        <td>  <?= $model[$i]['time']?></td>
        <td>  <?= $model[$i]['context']?></td>
        <td>  <?= $model[$i]['readtimes']?></td>
        <td><a href='http://localhost/yii/web/index.php?r=admin/deletearticle&&id=<?= $model[$i]['id']?>'>删除</a></td>
        <td><a a href='http://localhost/yii/web/index.php?r=admin/findarticle&&id=<?= $model[$i]['id']?>'>修改</a></td>
    </tr>
    <?php }?>

</table>